package cn.wolfcode.ssm.mapper;

import cn.wolfcode.ssm.domain.SystemDictionaryItem;
import cn.wolfcode.ssm.query.QueryObject;
import java.util.List;

public interface SystemDictionaryItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SystemDictionaryItem record);

    SystemDictionaryItem selectByPrimaryKey(Long id);

    List<SystemDictionaryItem> selectAll();

    int updateByPrimaryKey(SystemDictionaryItem record);

    List<SystemDictionaryItem> selectForList(QueryObject qo);

    // 查询字典明细表中Sequence的最大值
    Integer selectMaxSequence(Long sequence);

    // 根据字典表中的sn查询字典明细表的中的title和id
    List<SystemDictionaryItem> selectParenSn(String sn);
}